
const priceFormat = require("./src/utils/priceFormat.js")
const cors = require("cors");
const express = require("express");
const app = express()



const ScottMain = {
    priceFormat,
    app,

    init(){
        this.initApp()
    
    },
    initApp(){
        app.use(cors())
        app.use(express.static("./public"))
        app.listen(3695, () => {
            console.log("http://localhost:3695")
        })
    }


}





ScottMain.init()


// app.get('/api/getAllItemTeplate', async (req, res) => {
//     res.send(AllItemTemplate)  
// })











